package com.example.firstday.kotlin
fun main(){
//    forFun()

    forFun2()
//    forFun3()
}
fun forFun(){
    for (i in 1..10){
        println("i = $i")
    }
}
fun forFun1(){
    for (i in 1 until 10){
        println("i = $i")
    }
}
fun forFun2(){
    for (i in 1..10 step 3){
        println("i = $i")
    }
}
fun forFun3(){
    for (i in 10 downTo 1){
        println("i = $i")
    }
}